import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 系统管理路由
export const instruction: Array<RouteRecordRaw> = [
  {
    path: '/instruction',
    redirect: '/instruction/copy',
    component: BasicLayout,
    meta: {
      title: '自定义hooks',
      isShow: true,
      icon: 'ControlOutlined'
    },
    children: [
      {
        path: '/instruction/copy',
        name: 'Copy',
        component: () => import('@/views/instruction/copy/index.vue'),
        meta: {
          title: '复制hooks',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      },
      {
        path: '/instruction/debounced',
        name: 'Debounced',
        component: () => import('@/views/instruction/debounced/index.vue'),
        meta: {
          title: '防抖hooks',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      }
    ]
  }
]
